function [] = AART (args)
%  AART: Run Autonomous Appearance-based Registration Test-bed
%   
%       GENERAL
%   
%        [] = AART () 
%
%       ABOUT
%         -Created:     February 13th, 2004
%         -Last update: February 2004
%         -Revision:    0.0.1
%         -Author:      R. S. Schestowitz, University of Manchester
%  =================================================================


fid = fopen('Settings','r');

run_niced = fgets(fid);

display_splash_screen = fgets(fid);

% get some settings from the file

if (str2num(display_splash_screen(1)) == 1),
    splash_handle = splash;
          % display splash screen
    if (strcmp(getenv('OS'), 'Linux'))
      if (str2num(run_niced(1)) == 1),
	      % run with CPU at lower capacity
	      unix('nice mbr');
          % mbr is a scripts that runs register from outside MATLAB without
          % the splash screen
      else
  	      register;
      end	   
    else
       % if not on Linux
        register;
    end      
    close(splash_handle);
      % close the splash screen once the main window is open
    clc;
else
    register;
    clc;
       % clear screen when main window is open
end

generate_documentation = fgets(fid);

if (str2num(generate_documentation(1)) == 1),
    document_aart;
       % document the package if settings force it to be enabled
end
