random bug fixes and implementation of RA  / invoice printing etc