adding net paid and incurred total functions and fixed sum_type
improving plot and examples