Updated C call registering by Nate Hayden.
Changed requested by Nate Hayden: Length of lines in betamat calculation and extensions of R files.