clean-up and comments
replaced old computeSunPosition