Deduplicate script, edit good copy to match the file structure more. Add gitignore.