Added max node function and fixed typos
Added max node prototype