Begin to rewrite documentation and add many examples.