added the open function

forgot to add the “a+” to the open function