Working S3 input/output example. Fixes #5.