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.  I also made a small change to allow the "Take Sample" button to refresh even if you aren't changing sampling types.