Remove unused defines.
Add missing template param doc.