Changed addMethod to createMethod and addParameter to createParameter.
Added copyMethod and copyParameter.
Use JsonPrinter instead of JsonGenerator to save RAM.