adding checkForFaillure methods, SonicSensor class, code cleanup