#49 Add missing strings to the lang file

Also translated two previously untranslated strings in the German
lang file.
#7 Implement statistics tool
#48 Fix 'undefined variable' warning
#50 Enable tag replacements in document name for PDF export