Corrected process matrix function and added initial fidelity function file