Better error handling and file_name

Fix for https://github.com/Lepozepo/S3/issues/49
and fix for https://github.com/Lepozepo/S3/issues/48