Removed unnecessary cruft
More proof-of-concept library functions

- gracefully handle if the library is empty
- PoC for event handler on templated items