Corrected the gaussian input file writing