Properly formatted the JavaDocs and made changes.

Fixed spelling and gave classes and methods the documentation it needs.