Restore API documentation. fixes #243.