Added CofP file and initilise variables