Improved the process of initialising the nodes.

- Node class now has a virtual init() member.