Added more debugging, fixed bug in calculating factuur total.