Addition of further ufuncs and cleanup; also defined sum, prod, diff, ediff1d