The reactionspp→ppπ+π-,K+p→K+pπ+π−π, π+p→ π+,pπ+π− and π−p →π+π− at 147 GeV/c