Add documentation for defintion and related methods