changed ruleset to PEAR, and added example file main.php