Update tool.php and add prececk.php to the project.