Fixed a (potentially very old) problem that sometimes caused the invert jacobian of the element transformation not to be correctly scaled.
Refactored a few kernels for better usability  and nicer look