Added basic functionality for creating invoices