Fixed bugs in unique val to domain and added event creation tools