Respect checkstyle rules. Fix some formatting issues.
Add documentation for OnTextChanged