Update index.md

Improved documentation and added proper code pigmentation