Finished cache file parser
Fixed some types in the dump function