Implement debug levels

closes #50