initial work.  added -w option to speficy dir for inputfile