Changed packet structure again

To include an 'end of packet' byte at the end of packet from slave to
master.
Added some error constants to globals.h

as well as some documentation