added allowable sorts and buckets to code and comments
Merge pull request #1 from deanxorr/feature/parameter_checking

added allowable sorts and buckets to code and comments