Made code for bilinear elements shorter.
Made linear term more efficient.
Made quadratic elements more efficient as well.  Next thing to do is to make fast ham generation for fits.