Fixed the constructor. Fixed bugs in the cusOutOfRange function.  The cons. seems to be 100% working now. Also fixed the setPins function.

It was not setting the PINS variable correctly.