Added example
Made readPacket private because it if of no use for the user