added DEBUG preprocessor flag

added ifdefs all over to remove serial print stuff for use when not
debugging. Code size reduced from ~90% -> ~30%