Finished schema / altered applySchema

I added the missing fields and then altered the applySchema function to allow for multiple lineItems, userFields, transactionSettings elements.