Two patches are attached. One allows for more whitespace in java code blocks. The other fixes a bug that would result in a main method being wrapped in another main method.