common.php: Added common file with functions to be used on multiple tools