DebugHelper added, CoreData refactoring