added a lot more code for assembling the finished rna chains after motif assembly