Heron calculation and some fixes.