Removing lib dependencies
Adding triggers to listen for invoice state changes