Refactoring: event handlers in timeline
Added source documentation