Added Application class, cleaned up index.php
Cleaned up documentation a bit