File presence check moved to a function
Merge pull request #33 from siddharthbhagwan/file_class_check

 File presence check moved to a function