Changed code templates.
Latest version.
Added javadoc.