Update home.php

Cleaned up some code and added a homepage system.