Model dependency function, Software repr fix
Dependency handling and system model bug fixes