added comments to unpack_dat/parseWord and fixed a bug with num_words in unpack_dat/extract_words
more comments