code cleanup and fired event after basic tools are registered
add event class
deleted commented code