added area calculation and fixed sun position calculation