     }
     
     // MARK: - Touch handling functions
-    override public func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
-        if let firstTouch = touches.first{
+    override public func touchesBegan(touches: Set <UITouch>, withEvent event: UIEvent?) {
+        if let firstTouch = touches.first {
             let touchPoint = firstTouch.locationInView(self)
             self.ctr = 0
             self.pts[0] = touchPoint
         }
     }
     
-    override public func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) {
-        if let firstTouch = touches.first{
+    override public func touchesMoved(touches: Set <UITouch>, withEvent event: UIEvent?) {
+        if let firstTouch = touches.first {
             let touchPoint = firstTouch.locationInView(self)
             self.ctr += 1
             self.pts[self.ctr] = touchPoint

//
//  YPDrawSignatureView.swift
//  Draw a signature into an UIView
//
//  Created by Geert-Jan Nilsen on 06/11/14.
//  Copyright (c) 2014 Yuppielabel.com All rights reserved.
//

import UIKit


        }
    }
    
    override public func touchesEnded(touches: Set <UITouch>, withEvent event: UIEvent?) {
        if self.ctr == 0 {
            let touchPoint = self.pts[0]
            self.path.moveToPoint(CGPointMake(touchPoint.x-1.0,touchPoint.y))
            self.path.addLineToPoint(CGPointMake(touchPoint.x+1.0,touchPoint.y))
