Fix javadoc.
Add plugin infrastructure for console.