Update Blog_tools.php

Updated and Beautified the Script.