testing for tmpdir functionality
removed explicit path, referenced PWD for use in various locations
now references scripts in /home/m/mchakrav/patlemo6/Median_code
removed tmp usage, for now