Slight modifications

Switched debug mode to be session based,
Exceptions and errors are no more manipulable