Fixed -pi switch.
Added option to save choosen profile (-ps).
Fixed "save"-option. Config-file will be loaded automatically now.
Tested initial loading of xdir and fixed some issues regarding config-file.