Re-wrote API docs with markdown.