Added documentation for TSR library.
TSR documentation updates.
PEP8 fixes for tsr.py