Made application "Single instance only"
Fully implemented settings, fixing #1