Fixed pretty print a bit.
Disabled debug messages when compiling in release mode.
Fixed error message construction.