Add default argument frames=-1 to read()

By default, this reads until the end of the file.