replace kstring with std::string
Update the test program to use bzip2 or gzip