Implement PACK file parsing and add some documentation