now parameter files are chunked.

Forgot to make changes so that parameter files are chunked
just like the kim files.  Also, improved chunking code
for all files.