fixed routing for section indexes, added some checks for duplicate filenames
removed debug statements