fix for overwrite in put operation

This PR fixes the follwing bugs.

Fixed a bug where the expiry variable was not getting set leading to error in generating url.

Fixed the put operation to overwrite the file when the checksum is same and overwrite is set to true.

Fixed the get operation which would overwrite the file when the checksums are diffrent and overwrite is false.

Fixed examples which had upload/download instead of get/put