adds a debug option

Not sure if this is how you would want to implement such a feature, but I found this helpful. It might be helpful to output a statement to the logger in the case of debug being true.