Changed way flash params read and written to

Changed the way the param values were read from flash and written to.
Also added a proper 16bit crc to the end of the flash values