Stuff is working but still needs work.
Added tests for map reduce function and made bucket calculator function sync.