Some improvements

Still working on the hull systems, but I've added some more
optimizations to matrices and so forth.