Added basic perl template with headers and added ~ files to gitignore.