added numpy as a dependency and got rid of the "global bin number" concept
added example for plotting 2d histogram