Add Javadoc, example
Improve Java command DSL