Added possibility choose between periodic and annual amount. Revised sum_deductions method.
Fixed error in sum_deductions method