added dist parsing and upgma generation