intermediate version: adding linesearching to setState_ps did not solve issue #4,

an example that doesn't converge is included,
why is slope<0 ??