Added refractory period and tested it with sample test stimulus