replaced object-write with write-objects, removed pail-create, changed create to take a PailStruct.