Forgot to uncomment error-checking code in read.py(It was commented for debugging)