2 functions added to lib.php and 2 webpages created