reviewed wentropy.cpp -> some cleaning