Changes index to php and adds stats in separate file
Reorders legend items by alphabetical order. Adds description.