Update api.go comments for better documentatio display