improve comments

also, convert one use of #if DEBUG into a $DEBUG env check
str: remove allocation counter

(prefer to use 'make valgrind' instead)