Added unbind method and fixed events.off not working