Basic functions implemented.
Added persistent data store functions.