Add {@code} tags, and add methods to add and remove listeners.