Adding the computation of entropy

Added test code and Doxygen support