Made 'in progress' invoices all cancelled orders to allow them to be used. Added documentation.