Changed debug method, pep8'd all files (with the exceptiohn of long lines and small errors..