Massive refactoring.
Fixed error that occured when i clicked on a element with no class list property.
Added the memory.