minor additions
added javadoc