fixed canny+hough transform part of the algorithm.
added histogram calculations, template matching method, and some house keeping.
added ellipse detection mechanism
added histogram based analysis.