Added more debug features

Hit "d" 4 times to enter debug mode.