Some refactoring, separating node type from node instance. Added parameters, and disabled ability to set inputs.