Raise appropriate error if source for package cannot be found
Remove unused functions
Fix reference to downloads.download