Fixed some bugs with the index
a short note on how to run the example