Added 'removeListener' method.

Also added some missing semicolons etc.