added pulseValues array to make array of integer values
added array and made pointer to store pulse values