Fixed stratified sampling

When I was refreshing the stratified sampling on your app it gave the same sample every time.  I rewrote the code for getting the stratified sample and fixed a spelling error.