added basename method to RFile