added debug mode
Merge pull request #2 from jannickv/debugmode

added debug mode