Fixed leaks
Fixed passed variable
Fixed uninitialized value
Fixed a bug in reading in of temperature in histogram
Passing by reference and not by value

(asked by Gareth)
Fixed regtest
Refixed issue with non-initialized variable
Merge branch 'v2.1-valgrind-fix' into v2.1
Fixed leaks

(cherry picked from commit 1582340778aed2a6728287c096dd29cf25c8055e)

Conflicts:
	src/tools/BiasRepresentation.cpp
changelog
Merge branch 'v2.0' into v2.1

Conflicts:
	src/tools/BiasRepresentation.cpp
Merge branch 'v2.1' into v2.1-openmp