Cleaned up rotate.py and fixed 'off' profile detection
Cleaned up settings.xml and languages