fixed differences between code and documentation for 'read.data()'