Further improve template tool, add a write method to it