added format.py and tests. moved mult-alt tagging to merge.py