some cleanup.  withinTE now defaults to -1
added BAM file scanning step
replaced with libsequence functions
was confusing next_pos and tlen