Adding support for templates - breaking change. Rewrite readme, add more examples