changed voltage equation for 0-10v range
fixed warnings