added better documentation to testing.py