added proper calcs and printing of payments