Index folder changes

I have also changed the functions folder.