fixed reading and writing flash, now capable of loading a full file. Still isn't quite working.