cleanup of old cruft + start of scatterMatrix function