Modified api.rst for proper documentation
Merge pull request #213 from abinashpanda/dev

Modified api.rst for proper documentation