MAHOUT-1500: cleanup

- add code comments
- style fixes
- minor cleanups

Signed-off-by: Anand Avati <avati@redhat.com>