added javadocs, updated readme