mod/reader add utilities lib.php to hold common utilities functions