added comments
added missing emit boolean flag