Changed readme, wrote some javadocs