added Java version of parser, randomizer not complete