fix issue #21 build fail also updated example code in document

- fix issue #21 build fail also 
- updated example code in document