Added capability to subscribe to events via blocks, which will be called once and only once as soon as a block is registered.
Added comments. Cleaned up sample to (adhere to/explain) recommended practice.