Add a few comments and make removing event listeners possible.