Add some documentation about definition class

[ci skip]
Merge pull request #2541 from code-mancers/add-definition-docs

Add some documentation about definition class