apidoc and codestyle fixes