try to add residuo function
Improve feedback on batch script