added include_file() method and switched it to use safe_open()