ExtractIndexMark function

Extract index and name of markers