add debug option
Merge pull request #3 from bahamas10/dave-1409006950

add debug option