Fixed ufuncs for trig functions, added some documentation