removed call to read.nexus

to avoid parsing file twice. The string conversion to tree object is already
performed while manipulating the string to parse the meta data information
removed for loop
removed another for loop
simplified code