Updated documentation, and refactored Swagger extension.