added javadoc

added comments to methods which didn’t have comments.