added a ton of commenting to the packet class along with some minor fixes