added javadocs
finished javadoc comments, minor tweaks