update the index footer and format the code

I should never format the code with git!