Fix parameter formatting on save to file

Also fix a few compiler switch warnings