Added chunk_size optional argument to convert_dat_to_kwd function.