Merge pull request #1 from remdex/master

Merge
Merge pull request #2 from remdex/master

New merge
debug log error
Merge pull request #285 from vikasprogrammer/master

Fixed debug->log