Added options to ListEntities top produxece json or xml output