added javadoc, and removed unused getter