added tests, step size, and binning funciton