Cleaned up debug.tpl that is not required any more
Improved autoloader