refactored. Fixed spelling of category and refactored additional methods of NSManagedObject subclasses into categories.