adding javadocs
Added more java docs #222