Added constructor to create packet from raw data