Added config file functionality to set system-spec params.
Code cleanup.
Bugfix to handle null case (empty input struct).