Basic flash memory notion added to state.

WIP only