updated help, added javadoc