Update Clarifai API 

* adding support for file names
* modularizing and refactoring code