added doc to code
Merge pull request #26 from yanhick/doc

Doc