fixed <body> tags that were missing and placed <html> tags in the right places.