added examples, small test code update
added examples, small test code update