changing how events are stored, adding remove and removeelements methods for p5.dom