Core Data using UIManagedDocument

After Stanford course lecture, changed to use UIManagedDocument