Added settings and dialogs

Still crashes when you start/stop quickly.