Update generic.h

Minor syntax edits to the utility