correct myaml to export/import correctly between Mongo and YAML.
add unit tests for myaml

(also solves the issue in task #64)