fixed few examples and added single-expression functions
Merge pull request #3 from Ladicek/idioms-fixes

fixed few examples and added single-expression functions