Create modes.h

Modes file which defines different modes for nodes.