Updated design doc, changed final packet check in rcv, changed the index variable name