Bug fixes. Also changed ouput from phy to fasta format.