add settings function and stock river demo.

add settings function and stock river demo.