Redid main function. Should be optimised for performance
Added histogram features
Removed Histogram, moved functions to image. Tweaked histogram equalization for a bit