Added complete packet reader.

Also added tests of the readers and the packet value extractors.