Adding average_confidence method and some pep8 and pylint cleaning
Bug fixing: Now field names are allowed as keys for input data
Adding changes to HISTORY.rst
Removing trace and checking for 0 denominator