made all decode funcs methods of PacketIterator as it was pointless to manually pass a pointer to the iterator, also ran a go fmt