added rudimentary Javadoc comments