Fixed API documentation

- also fixed selftest, which waited for port number from BIND
Merge pull request #87 from hintjens/master

Fixed API documentation