Added calendar time stamp to file name
Made output directory an input argument