added comments to connection.py
added comments to mapping.py
more comments in tdm and traversal