fix memory leaks, fix output format, add file with kmers