Complete revision of the massi R package