Removed unneeded import
Updated Histogram function
Removed Dependance on logging