Fixed endianness which was sometimes wrong, removed unnecessary files, fixed packet header issue