Fix a bug in the indices module

A bug in the indices module is fixed. And the prefered name for the JSON
input is changed from inp.json to scan.json.