Removed the elements member. Use getElements() instead.
Fixed the elements list and the selection events.