Fixed a SegFault

-Added some #includes that caused problems when debugging in CAEN
Linux.
-Wrote the Pack_reset function.
-Used the Pack_reset function to fix the SegFault that was occurring.