Incomplete registerEvent(), updated eventSimulator(), added genericSetNode(), modfied event and set function for all gate and its test, added comments and remove unnessary comments