changed callback function to return packet, index, total; updated tests correspondingly
changed protocol to return on error but not terminate early on correct packets
Merge pull request #9 from albertyfwu/bug125

changed callback function to return packet, index, total; updated tests ...