pulseIn now better mimicks how a theoretical mraa pulseIn would look
Also changed capitalization on variables