You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mne_read_surfaces.m
    path of file: ./repos/fieldtrip/external/mne
    
    the code of the file until where you have to start completion: function [surfs] = mne_read_surfaces(surfname,read_curv,read_left,read_right,subject,subjects_dir,add_info)
%
% [surfs] = mne_read_surfaces(surfname,read_curv,read_left,read_right,subject,subjects_dir,add_info)
%
% Reads FreeSurfer surface files for both hemispheres
% as well as curvatures if requested.
%
% Adds the derived geometry information to the surfaces
%
% surfname     - The name of the surface to read, e.g., 'pial'
% read_curv    - read the curvatures as well
% read_left    - read the left hemisphere (default true)
% read_right   - read the right hemisphere (default true)
% subject      - The name of the subject (defaults to SUBJECT environment
%                variable)
% subjects_dir - The name of the MRI data directory (defaults to
%                SUBJECTS_DIR environment variable)
% add_info     - Add auxilliary information to the surfaces
%                (vertex normals, triangle centroids, triangle normals, triangle
%                areas) (default true)
%
% surfs          - Output structure containing the surfaces
%

%
%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%

    
function [surfs] = mne_read_surfaces(surfname,read_curv,read_left,read_right,subject,subjects_dir,add_info)
%
% [surfs] = mne_read_surfaces(surfname,read_curv,read_left,read_right,subject,subjects_dir,add_info)
%
% Reads FreeSurfer surface files for both hemispheres
% as well as curvatures if requested.
%
% Adds the derived geometry information to the surfaces
%
% surfname     - The name of the surface to read, e.g., 'pial'
% read_curv    - read the curvatures as well
% read_left    - read the left hemisphere (default true)
% read_right   - read the right hemisphere (default true)
% subject      - The name of the subject (defaults to SUBJECT environment
%                variable)
% subjects_dir - The name of the MRI data directory (defaults to
%                SUBJECTS_DIR environment variable)
% add_info     - Add auxilliary information to the surfaces
%                (vertex normals, triangle centroids, triangle normals, triangle
%                areas) (default true)
%
% surfs          - Output structure containing the surfaces
%

%
%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%
%   Revision 1.8  2006/09/27 13:07:25  msh
%   Added vertex normals to BEM surfaces.
%   Fixed some data type casts in mne_read_surfaces
%
%   Revision 1.7  2006/09/25 19:48:16  msh
%   Added projection item kinds to fiff_define_constants
%   Changed some fields to int32 in surface structures
%
%   Revision 1.6  2006/09/15 16:03:02  msh
%   Added an extra argument to mne_read_surfaces to avoid generation of auxilliary data
%
%   Revision 1.5  2006/05/30 18:29:21  msh
%   Return an empty variable if neither read_left nor read_right is set
%
%   Revision 1.4  2006/05/30 18:24:56  msh
%   Added options to read only one hemisphere.
%
%   Revision 1.3  2006/05/22 11:01:47  msh
%   Deleted superfluous text from the comments.
%
%   Revision 1.2  2006/05/22 10:55:02  msh
%   Fixed help text.
%
%   Revision 1.1  2006/05/22 10:44:44  msh
%   Added surface and curvature reading routines.
%   Fixed error in mne_read_source_spaces: triangle normals were not normalized
%

me='MNE:mne_read_surfaces';

global FIFF;
if isempty(FIFF)
    FIFF = fiff_define_constants();
end