Updated user mapreduce and pointwise functions. Added various other new functions.