Organized code and added footer

Thanks for the help guys! Thought you should get credit for your work.