fixed bugs in node and ADC functions code