Fixing code style from LiteLoader, fix checkstyle, complete javadoc