Trying out nonvolatile memory read/write functions.  Appears to be working, I just have to figure out where in the flash memory it is safe to write stuff without being overwritten.