sm: complete init()

Check for config args, set reasonable defaults
Add to global array
Cleanup as needed