Output formatting improved and moved to print_rates().