normalized histogram values to 0-64, and added basic plotting