added purchases scaffold and refactored file structure and code to nest purchases under invoices