Can't write object to file. String works much better...
Port fixed and some clean-up. Module works. Needs integration.