Cleaning up java_grinder main code and adding option to turn off optimizer.