added some support for partial packets

packet::read now also takes in a uint8_t; should be initialized to 0
updated code style: added a space in front of all "<" symbols that
didn't have one before