Equation of state of superfluid neutron matter and the calculation of the 1S0 pairing gap