fixes index.php with comments

@dougdoner see index fix here, you may want to change what I did. I
left verbose comments in the code