Changed program to convert all files in a directory