Add gogit, touch script and upgrade template functions