Updated readPulse input checks to throw errors instead of just logging
Formally use shifted values instead of including LPC18xx.h
Moved timeout bounds check back to js. Added input testers