Added multiple debugging levels, better error management with bad pointer references
0.7.0