Created code to pack files. Some further fixes are needed.