Greatly improved the documentation.