api: fix Neighbor() error handling

Also fix some typos.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>