Added basic memory functions

Can read and write memory contents to and from files