initial settings coding

saving settings not working.