WIP #175

- clean up class definition
- added additional documentation
- cleaned parameter names in public API
Added bucket types to map reduce inputs