Several improvemenst to store files in the right place and fix some other problems or improve display of parameters