Refactored adGenerator to return enter/exit functions
Merge pull request #42 from pshatara/master

Refactored adGenerator to return enter/exit functions