Update funnel analysis

Added unit tests to funnel analysis. Refactored stream from tuple to a class so it's more extensible. Still need to update documentation, but wanted to get your feedback on the new code structure.