modified Main.java for rna parsing mode