removed 1000 file restriction
Added Error Message
reordered file processing