various cleanups and comments; todo on LRUCache and working minimal regression test; and otehr regression test cleanups