Added javadocs, updated README.md