Minor fixes

I've renamed the demo.php to index.php and moved some html to avoid
"headers sent" error, which was caused by adding html before
session_start()