function [output] = exampleFxn(varargin)
	% example function with outline for necessary components
	% biafra ahanonu
	% updated: 2014.02.17

	%========================
	options.foo = 0;
	options.bar = 'hello world';
	% get options
	options = getOptions(options,varargin);
	% display(options)
	% unpack options into current workspace
	% fn=fieldnames(options);
	% for i=1:length(fn)
	% 	eval([fn{i} '=options.' fn{i} ';']);
	% end
	%========================

	try
		if options.foobar==1
			display(options.bar);
			% do something
		else
			% do something else
		end
	catch err
		display(repmat('@',1,7))
		disp(getReport(err,'extended','hyperlinks','on'));
		display(repmat('@',1,7))
	end