Updated and improved the documentation.