fixed event listener in Firefox (which requires event to be passed in the anonymous? function). Cleaned up comment coding and removed more debugging echoes.