correct spelling errors
update javadoc comments