Simple Index algorithm, chart fixes, change to generation script