func formatting and documentation

Not sure if you intended to keep the func snippet dead simple... I am trying to get into a better habit of documenting my node code, and I thought this would help me. Maybe it would help others too ;-)