Eliminate some of the splsoftnet() calls, misc clean up.
Add soref() and sounref().