Api Documentation

I have added some basic api documentation.