added changes to entropy calculation and also added comments to some classes