Fixed initial value for input nodes, sorted invalid behaviour
Some bugs in not detecting change to values