added public? and acl method to s3 file and minor refactoring