improve javadoc and api of Generic in gs-api