javadoc added, fixed spelling errors
fixed spelling errors, added javadoc