Commented tanslator code and formatted it for slightly easier reading