many fixes and new NSManagedObject subclasses