Added enter/exit conditions
Updated demo to deomonstrate enter/exit conditions
Updated readme to reflect API changes