fixed a minor code bug related to setting the pion type (Pi+, pi0, pi-)