fixes, now works
only do NA/NaN check for %*%, not [t]crossprod