Finised adding JavaDoc.
Removed trailing spaces.
lint