[misc] Add some javadoc and add directory input source
[codestyle] Apply codestyle