Cleanup and added mapreduce api to JavaDoc