fixed flavor tag bug; added lots of test prints.