store downloaded file in a download subdirectory

delete everything in it before a new download is started, there is no need to keep the files around wasting space

and fix some lint errors