Added XiReader, a mechanism for reading from files.