add some docs to glue.h