refactors dna code, removes Map library include, and turns toRNA to partially applied function