more error messages
remade commit
initialiye device
corrected calculation of actual position