many bug fixes, adds delete and edit to invoice.