Update API.md, add descriptions for all functions
pin libffi submodule to tag v3.0.13