updated comments, satisfied flake8
making flake8 happy; removed dead code