Whooops.... document class was not loaded when debug is off :-S
Eliminated the use of $GLOBALS, started with the maildrivers and some smaller fixes and updates