Remove trailling crap
Refactor the index.php page