Main code rev. 1736

Renamed the site index method to something more meaningful