bugfixes in divisive and layered optimization method: when perfroming layered, wrong iteration numbers where written into complete file when the parameterset had already been assessed