Began adding support for tri-fanning (or maybe other arrangments too.)
Fixed a couple compiler warnings.