Rewrite documentation

Now includes more details about configuration format and is somewhat
more tutorial-ish.