Added initialization code for pulse and edge inputs