Update index.md

- remove tabs in example source code for more consistent look
- example source code psr reformatted