         }
     }
     
-    // MARK: - Helpers
+    // MARK: - Methods for interacting with Signature View
     
-    // MARK: Clear the Signature View
+    // Clear the Signature View
     public func clearSignature() {
         self.path.removeAllPoints()
         self.setNeedsDisplay()
     }
     
-    // MARK: Save the Signature as an UIImage
-    public func getSignature() ->UIImage {
+    // Save the Signature as an UIImage
+    public func getSignature() -> UIImage {
         UIGraphicsBeginImageContext(CGSizeMake(self.bounds.size.width, self.bounds.size.height))
         self.layer.renderInContext(UIGraphicsGetCurrentContext()!)
-        let signature: UIImage = UIGraphicsGetImageFromCurrentImageContext()
+        let signature = UIGraphicsGetImageFromCurrentImageContext()
         UIGraphicsEndImageContext()
+        
         return signature
     }
     
-    // MARK: Save the Signature (cropped of outside white space) as a UIImage
-    public func getSignatureCropped() ->UIImage {
+    // Save the Signature (cropped of outside white space) as a UIImage
+    public func getSignatureCropped() -> UIImage {
         // Get the UIView full render
         let fullRender = getSignature()
         
         // Get a CGImage reference of the signature for just the bounds of the bezier path
-        let imageRef: CGImageRef = CGImageCreateWithImageInRect(fullRender.CGImage, path.bounds)!
+        let imageRef = CGImageCreateWithImageInRect(fullRender.CGImage, path.bounds)!
         
         // Create a UIImage with the cropped CGImage
         let signature = UIImage(CGImage: imageRef)

        }
    }
    
    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))

// YPDrawSignatureView is open source
//
// Copyright (c) 2014 - 2016 Yuppielabel and the project contributors
// Available under the MIT license
//
// See https://github.com/yuppielabel/YPDrawSignatureView/blob/master/LICENSE for license information
// See https://github.com/yuppielabel/YPDrawSignatureView/blob/master/README.md for the list project contributors

import UIKit

