update test
add port return codes
re-arrange arguments
add state
add compile
rename to INode
allow preloaded definitions