proper error checking added
* dbg.h is now in heavy use for logging
* each function in cligraph.h performs logging and error checking
logging can be turned off now