Added some type definitions for packet data structures.
Added delay, partial implement of packet handler.  It's time for dinner...