Added some javadocs and edited the readme