Added German translations

- added several other improvements in code organization