fixed few examples and added single-expression functions