MAHOUT-1500: Code cleanup and javadocs closes apache/mahout#50