v1 checkin. It does not work but the bulk of the code is in there
finishing up revised research tool