finished migration to new core data structures; removed debug.h in favor of using libcommotions version