fix to only write centroid data when both boxes are good; fix indents
fix to only write centroid data when both boxes are good; fix indents

saltastro/timDIMM,saltastro/timDIMM,saltastro/timDIMM,saltastro/timDIMM