update to example usage and makefile used to generate index