Cleaning lib.php file