reorganizing for antlr4
refactored parameter processing
This will make it possible to add templates without
making changes to the java portion of the code generator.