Added javadoc comments to lab2