add more docstrings to testing.py
Some comments in the code about global variables.