MAHOUT-1500 H20 

Creating a PR to just to be able to (re-)view what current state of diff is against master in this work.
for loop needs braces ... here and in a few other places