Modified the logic to download a private file and fixed other errors in the m...