changed to accept a reader
Merge pull request #1 from openxo/develop

changed to accept a reader