working version of ProtoAminoAcid and TemplateOutputFile