added getbill and paybill functions