Changed error message of indexing
Change messages order and format of output