feat(serialize) implement serialize to file

- unit tests not yet completed
[skip ci]
feat(serialize) Implement serialization to file

fixes #5
Merge branch 'serialize_to_file' into development