FFI guide fixes

Updates the callbacks section to refer to the right function name and fixes a couple of minor whitespace issues in the examples.