The last thing to put in the document is the line
\end{document}
LaTeX ignores anything which follows the \end{document} command. The only text after this should be comments, since you have now finished your document.