Removed dangerous removeAllListeners() and improved readability.
0.11.13