Change the method to writing the information into the kmers.txt file

Signed-off-by: Jean-François Erdelyi <jean-francois.erdelyi.1@ulaval.ca>