add refbed option
fix bug with how refbed gets passed.  refactor to not use recursive calls for tree traversal. parallelize bigwig generation