Removed dead code, and refactored auto creating language files.