Document utility functions.
Add tests for Thumbnail.
Add simple error handling.