--- a/inst/setfields.m
+++ b/inst/setfields.m
@@ -1,17 +1,19 @@
-## Copyright (C) 2000  Etienne Grossmann
+## Copyright (C) 2000 Etienne Grossmann <etienne@cs.uky.edu>
+## Copyright (C) 2000 Paul Kienzle <pkienzle@users.sf.net>
+## Copyright (C) 2012 Olaf Till <i7tiol@t-online.de>
 ##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
+## This program is free software; you can redistribute it and/or modify it under
+## the terms of the GNU General Public License as published by the Free Software
+## Foundation; either version 3 of the License, or (at your option) any later
+## version.
 ##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-## GNU General Public License for more details.
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+## details.
 ##
-## You should have received a copy of the GNU General Public License
-## along with this program; If not, see <http://www.gnu.org/licenses/>.
+## You should have received a copy of the GNU General Public License along with
+## this program; if not, see <http://www.gnu.org/licenses/>.
 
 ## -*- texinfo -*-
 ## @deftypefn {Function File} {} @var{s} = setfields(@var{s},@var{key},@var{value},...)
@@ -21,13 +23,6 @@
 ## @seealso{cmpstruct, fields, rmfield, isstruct, getfields, isfield,struct}
 ## @end deftypefn
 
-## Author:        Etienne Grossmann <etienne@cs.uky.edu>
-## Last modified: January 2000
-## November 2000: Paul Kienzle <pkienzle@users.sf.net>
-##     return error rather than trapping to keyboard
-
-## modified by Olaf Till
-
 function s = setfields (s, varargin)
 
   if ((nargs = nargin ()) == 0)
@@ -36,10 +31,10 @@
     if (rem (nargs, 2))
       pairs = reshape (varargin, 2, []);
       if (! iscellstr (pairs(1, :)))
-	error ("setfields: called with non-string key");
+        error ("setfields: called with non-string key");
       endif
       if (isempty (s))
-	s = struct (); # might have been an empty array
+        s = struct (); # might have been an empty array
       endif
       s = cell2fields (pairs(2, :), pairs(1, :), 2, s);
     else
@@ -49,6 +44,4 @@
     error ("structure must be scalar or empty");
   endif
 
-%!
 %!assert (setfields ({}, 'key', 'value'), struct ('key', 'value'));
-%!