debug works,mostly
changed the way the debug statements cascade
fixed some bugs
pushed debug module to a core Module
replaced the logging module