First pass setup script with updated template files