add better documentation for wgdb class