small changes and added unction.php, containing some global simple functions and constants