Some bugfixes + ended index.php