Updated the documentation to match the latest code.