cleanup inline doc and add defgroup