added line_start streampos, bug fixes