added Coredata to survey document
Copied protocol code to maps