Added writting results to .XYZ files