Fix bad syntax, and add defgroup for library.