Update node.ino

incorporates changes made by transfinite and JohnHoward from the arduino forums.

Code modified for clarity and various bug fixes.