changed comments/variable names, fixed bug with updateClasses
added tests for hovering