The thing finally works now, the printouts are not that pretty though.