Finalized phenix.diffuse code