Write to file and plist implemented. Not yet tested.