Made some small improvements to the ResultReader/Writer API