Add javadoc comments

Fix checkstyle warnings

Fixed the newlines for gabizou