updated example for geninv and readme