Revert "First clean of this file. We need also to remove all R classes not used."

This reverts commit db59402ed5c143a0772fe12a263831302cbfc811.