added install scripts, modified RulesController.class.php for the install script