added pack/unpack to header, Classe for MID 1 and 2

Added enum for errors will be for mid004
Using stringstreams to build and parse messages.