working code with some exception handling remaining (completed updating of Readme.md for pistatsview.py)