Created rank on index.php and some corrections.