added composer.json
fixed lib_func.php