Add debugging functionality
Add debugging examples
Add debugging vignette