bug fixex and changes in pulse detection