finished first working implementation of reading and writing Atoms