change getBuckets to accept parameters, closes #77
2.0.1