Documentation

Fixes #2, #6, #10 and #24