Small fixes and started working on archive packing/unpacking.