patch up download-function

Trying to get the package to pass checks and build properly. Currently can't build the documentation