fixed bug in legion script
Merge branch 'master' of github.com:tomaszkacprzak/nmb
added mkdir for resutls_mat
analyse can work on different yaml files