Fixed up some nonsense in index.php and had a general play around.