Merge pull request #192 from behdad/jfkthame-stch [issue 191] Make apply_stch() give a more precise fit