Fix compilation
Fix usage description
Add strprefix
Check for whether we are going to upload or download