Fix typos and javadoc errors

I just fixed some typos in comments and functions names as well as an javadoc specific error.