Improved API context and updated the documentation.