updated javadoc and readme