Made api.lua documentation