clean file organization, add tenuous error checking for downloads