log_sum_c now printing using the correct method. Added functionality in log_sum.sh to print final results in a unified way.
Minor refactoring.-