converting rhadoop to be more general
made rhadoop more general