Single pion production in π+p interactions at 895, 945, 995 and 1040 MeV/c