Renames dropEvents() to clear(). Removes todo notes.
Updates doc.
Refactors code.