the example shows 500 samples, not 300
lw variable is used everywhere except here
lowercase x and y are defined (same object), but only x is used. substituting to y makes more sense; minor whitespace edits
superfluous parenthesis
Merge pull request #125 from haraldschilly/master

CH3: 4 minor changes