Added source code validation method
Removed template name as we don't thrown an exception and updated docs