Update create_domain.erb

Fix bug in setName and use readTemplate instead creaDomain