Add packet unit test
Rewrite section reading algorithm. Works correctly now.
Merge remote-tracking branch 'origin/master'