Created prototype for log_sum_c-function. Fixed bug in log_sum_filter causing only the dates to be written to the filtered source list.
Implemented log_sum_c().