rewrite datatodoc to generics functions

	modified:   lib/datatodoc.js
	modified:   lib/generics.js