using json for input and output formats, make tally.tar.gz truly gzipped, adding gendemo_ciphertexts.sh script