added means of passing files as command line arguments