Debug mode

Hello,

I added a debug mode and made one argument of the grep command optional (then the file is build from the ressources)