Fixed problem with random character in first file name
Removed debugging printfs