Merge pull request #126 from RagnarHauge/CRA-505

Cra 505 Fixed wrong writing of prior correlation files in CRA-708, case 3 now runs fine.
CRA-714: Fixed numbering of written simulation files.
Merge branch 'CRA-714' into CRA-505