Added api documentation.
Switched to Markdown.