Add documentation in the new style and add template supports