added ability to save settings

with correct filenaming... of course