fixed small bug that adds one to the phase only if the number of items in that bin is greater than 0
cleaned up a small bit so that timeplotting works now as well as phase plotting; still plenty to clean up
small changes