fix download example

clean-up buffer, fixed the download examples