Update ffapi to v0.4

Closes #3