add docs for complete code
Merge pull request #238 from vinitkumar/feature/add-docs

add docs for complete code