Script errors log with debugMode
Log patch, much better now.
Merge pull request #23 from toxinhead/master

Script errors log with debugMode