Added pointer packing.
Minor cleanup of pack.
Added unpacking.