Rename index to main
Remove private property