Added default functions and started with a library template to dispatch events to collections