added option to specify minimum tag occurence ratio
extended tag substitution list