Formats Translator class. Adds comments and documentation for Translator class. Adds some optimization which should speed up the translation process.