changed docs to use lambdas in examples to show shorter code
Merge pull request #1 from balamaci/documentation_lambda

changed docs to use lambdas in examples to show shorter code