Fixed module export (oops!)
fixed bin center calculation
added tests