Added some javadocs. TerminalProcessor renamed.