Change index extension to .php
Add indenting