add  topleveldoc target to top level build.
add documentation to api class