Fixing index.
Adding some comments