Added a docment on the API. Fixed a few errors. A few more tests
Merge pull request #202 from bakul/mk-c-api

Added a docment on the API. Fixed a few errors. A few more tests