Update Translator.java

Added javadoc comments to all methods, minor optimizations to 'getInnerKey' method