removed comment from bamutils count header - makes it difficult to import into R.
don't try to iterate on a string
modifications to better deal with tags