Simplified some of the code to be less verbose when types were obviously known for a variable.

Added documentation on translating to other languages.