Move wavepacket struct to a common header, rename make/lay functions to unpack/pack