added chi^2 to legends
added type conversion to tuple, so you can also call with a list of lists
finished evaluation of energy gauge