Removing all debugging features from the dev branch need further work on
this in the 'making_sense_of_errors' branch