tests added back, more functions, xmod
fix reduce right