Added more functionality to sample project.  Fixed bugs with subscribe/unsubscribe.