name changes to ease understanding code..
grep re-named input file and some clean up...