the packet package provide a reasonable API in packet/export.go

packet.Write and packet.Read provide a much more friendly API I think.
Also, I add a ouster.Error which provide line and file info of the error