- added settings object
- added toggle graph function to settings (and a link to the menu)
- refactored refresh()