added debug option
changed all console.log calls to Tools.log
added Tools.log debug function
fixes on console to tools changes
Merge pull request #152 from aarizkuren/master

Added debug option to console.log