Added auto-handling of chip movement to write function in SPI flash driver. Still need to do write, which will be significantly easier.