modified print message in processPacket function and some other comments and changes after talking with the TA