Pull request for issues reported in GitHub

Issues #2 and #3 are fixed. I have also upgraded AWSSDK to the latest.