Trailing whitespace
Fix indentation
Fix document initialization
Register inline annotation renderer for clear events
Merge pull request #215 from mleduque/javacm-fixes

PLGEDT-39 Java/cm fixes