improved script to update readme and index