added config file ; fixed filename sorting issue