General code improvements, localizations, and crash fixes

All this is already included in my latest compile of this mod, which you have a link to.
Hope you like it :)