Updated documentation based on pull requests and issues in Github.