Added templates. Updated documentation.