Started I/O work

* Added export_to_pkm