add documentation for courier settings API, fix some mistakes