Added header and footer and some minor changes.