\documentclass[12pt, letterpaper, fleqn]{report}

\usepackage[pdftex]{graphicx}
\usepackage{color}
\usepackage{floatflt}
\usepackage{fancyhdr}
\usepackage{amsmath, epsfig}
\usepackage{url}
% \usepackage{spconf, amsmath, epsfig}
\usepackage{geometry}
%\usepackage[pdftex]{hyperref} // comment out to remove hyperrefs for hardcopy
\geometry{verbose, letterpaper, dvips,
		  lmargin=1.5in, rmargin=1.0in,
		  tmargin=1.0in, bmargin=1.25in,
		  head=14.5pt, nofoot}

%--- This package contains local macors.  Remove the "draft" option (or
%--- (or change it to "final") for the final version --------
\usepackage[final]{thesisMacros}

\PageHeaders

\begin{document}

  \setcounter{page}{0}
  \pagenumbering{roman}

  \topskip=0pt
  \baselineskip=13pt
  \parskip=10pt % for toc
  \parindent 3mm

  \input{titlePage.tex}

  \BodySpacing

% \input{signaturePage.tex}
\input{abstract.tex}
\input{acknowledgements.tex}


  % table of contents:
  % the .toc file generated isn't entirely accurate. If you run latex & bibtex a few times
  % so it generates everything, and look at the table of contents, it will show the list
  % of figures and list of rables page numbers to be on less than the actually are. To hack
  % a fix for it (assuming of course that it's really latex's fault and not mine), you can
  % open the .toc file and edit the numbers that will be displayed in the table of contents.
  % Then, run latex once. This will change the table of contents to the numbers you edited
  % in the .toc file. But running latex again will overwrite your changes.
  {
    \TOCSpacing

    \tableofcontents

    \addcontentsline{toc}{chapter}{List of Figures}
	\listoffigures

    \addcontentsline{toc}{chapter}{List of Tables}
    \listoftables

  }

  % actual text
  {
	\newpage
	\setcounter{page}{0}
	\pagenumbering{arabic}

	\BodySpacing

	\input{ch1/ch1.tex} % Introduction
	\input{ch2/ch2.tex} % Background
	\input{ch3/ch3.tex} % Related Work
	\input{ch4/ch4.tex} % Sandstrom the Idea
	\input{ch5/ch5.tex} % Sandstrom the Implementation
	\input{ch6/ch6.tex} % Results
  }


  % bibliography
  \nocite{*}    % this command tells the compiler to put every bib entry into the reference 
                % section, even those that aren't referenced anywhere in the document.
	\newpage
	\baselineskip=13pt
                              % \bibliographystyle{IEEEbib} % attempts to order based on appearance
	\bibliographystyle{plain} % attempts to order alphabetically by author
	\addcontentsline{toc}{chapter}{Bibiliography}
	\bibliography{bib}
\end{document}
