expanded the examples, added some functions

Signed-off-by: hughfuve <hughfuve@gmail.com>