fixed warning (unused parameter)
added string name support for segments
added new example: named segments