various tweaks in matprod.c
more matprod.c tweaks
yet more matprod.c tweaks