Some typo's, edit for style, and used nympy.random.rand in example