Rewrite, remove modes so every instance is a node

A lot of other stuff too.

Signed-off-by: Tom Grennan <tmgrennan@gmail.com>