fixed issue with div1 counts and quieted down the debugging messages.
also removed a lot of old commented out stuff so the file is shorted and
easier to read