Formatting invoices and statements for printing

Check here for some work done and ported to v5.0.0