Fixes:
-Wrapped outputs in html tags.
-Added <title> and <body> tags.
-Added </html> after the end of last php tag.