Add debug checkbox, set debug default state to off, remove trailing whitespace