add debug method to begin replacing DEBUG

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
more use of is_debug to replace DEBUG

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
use modern convention of self

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>