More work on quads, also cleaned up some of the code. Seems to run pretty fast but still in dire need of optimizing. Will continue after adding other field phase 1 elements.