Rewrote gaussian packet function
Merge branch 'packet'