Fix parameter formatting on save to file

Also fix a few compiler switch warnings
Merge pull request #313 from tstellanova/fix_param_saving

Fix parameter formatting on save to file