ENH Comment code. Use namedtuple for readability