Modified download function and .travis file