Added some chechs and 'generaDigitoControl' method