Purdue Owl has an excellent guide on formatting in the MLA style.
Citation management tools like Zotero and Endnote enable you to capture citation information about each book and article you are citing in order to help you create bibliographies, add footnotes, endnotes, etc. They even work in concert with word processing software to allow you to create the bibliography, add footnotes or endnotes while you are writing your paper!