Librified readData.py

Moved the behavior of readData into a function loadTestData(testNumber)
Added a __main__ block