parameter cleanup
code improvement
groundwork for multibranch checks
fixed getPortNames
fixed simulation clean & cancel