Fixing docstrings and comments.
Removed logging module from peg.py