refactored to make program drier and easily extensible for changing providers
adding tests for checking variables
adding tests for image directory and images
changing test statement
adding travis yml file