Added javadoc comments to model code and generated javadocs