Randomizer moved back to Java from Scala
Added debug log information
Formatting cleaned