Fixed up the bits
made the program accept file names