reworked error and memory handling

I now longer exit() on the slightest sign of trouble, nor do I leak all my heap
memory allocations
fixed broken diagnostic output
dwarf diagnostic output now controlled by -D
removed, commented testing code
removed notes