Inserted sobel edge detection.

Inserted sobel edge detection and deleted some commented out code.