Removed old named files
Bug fix to getBlockIndex function