Add documentation
Improve template checking system
Improve tests checking actual template loading and for badly placed templates directory