Moved api docs to separate file