Write to File MK3

More serialization complete. Some issue is causing NPEs