Add configuration and debug mode

Signed-off-by: Steven Downer <grinch@outlook.com>