Fixed bug introduced by bad bug fix, not sure why it worked before...
Added basic settings dialog