renamed some variables for clarity.
fixed test of CalcDaylightHours to be testing correct function
fixed bugs concerning sun always up or down