Big doc effort + lint fixes
Proper template headers