Comment added to shutdown function
Added comment sections to phpdebug code
Added exception handler outline
Updated error handler routine