Modified sitereader.py to provide better error reporting