public List<string> commandNames()
{
List<string> tempList = new List<string>();
commands.ForEach(delegate(Command cmd)
{
tempList.Add(cmd.name);
});
return tempList;
}