misc changes to resid.look and other core functions, loading of data sped up