Correcting event registration to new header.

Also making minor changes to documentation and debug statements.
Merge branch 'basicframework' of github.com:dreac0nic/nimbus into basicframework