working stress algo
Merge pull request #3 from awongh/master

working stress algo