Better handling of model types

Corrected output for different model types; function now returns a list of significant and non-significant paths