Basic functionality. I may add more.
Fixed bugs in index, added example