Memory leaks and getting rid of unused variables

SW_Weather.c
	06/21/2013	(DLM)	variable 'tail' got too large by 1 and leaked memory
when accessing array runavg_list[] in function _runavg_temp(): changed
test from '(tail < SW_Weather.days_in_runavg)' to '(tail <
(SW_Weather.days_in_runavg-1))'
						in function _clear_hist_weather() temp_max was tested twice, one
should be temp_min
filefuncs.c
	06/21/2013	(DLM)	memory leak in function getfiles(): variables dname
and fname need to be free'd