Cleans up KMER and adds comments and explanation.