do not duplicatedly check a packet length when decoding packet, and
assert if a caller calls functions with invalid sequence.
fix the bug that did not properly check to see a locator index.
more verbosity.
change an error # in order to make it more meaningful when a locator cannot
be retrieved.
clean up code.