Added javadocs
Changed form code generation.