[misc] Javadoc and code style