Debug switches

This is to resolve #37.