Added safe version of Parse and Write
Fixed imports for Parse/Write according to name changes