diff --git a/scripts/ai/API b/scripts/ai/API
index 923e150..dd88df5 100644
--- a/scripts/ai/API
+++ b/scripts/ai/API
@@ -35,10 +35,10 @@ getdist(Vec2 vect)
     -- Vect point to calculate the distance from.
     -- return nil.
 
-getpos(number/pilot)
+getpos([number pilot])
   -- Get the pilots position of the current pilots position if no pilot
      is specified.
-    -- pilot ID or poiunter to the pilot to get the position of, if no params are called
+    -- pilot ID of the pilot to get the position of, if no params are called
        it uses the current pilot as target.
     -- return Vec2
 
@@ -100,6 +100,18 @@ face(number/Vec2 target, number invert)
     -- invert face away if 1
     -- return number offset from target in grad
 
+brake()
+  -- Makes the pilot brake (backthrust).
+    -- return nil.
+
+getnearestplanet()
+  -- Gets the nearest friendly planet's position.
+    -- return position to the nearest friendly planet.
+
+getrndplanet()
+  -- Gets the position of a random friendly planet.
+    -- return position to a random friendly planet.
+
 // ================
 // COMBAT!
 // ================