Multilang and fixes

I added the multilanguage handling, cleaned up some code and removed unused stuff.