Whitespace
Sample content
Check for existence and writability of data dir
Fix some failing tests
Make directories configurable
Add text handler