fixed phidget reader
cleanup