Minor changes to the header file
Moved debug macros to internal header, added global logging callback