Cleanups and fixes to the PAK utility, can now extract/insert, tested and functional for the most part.