Refactor W-mer counting and improve docs