added javadoc and README.md