updating compute_R method
Merge branch 'dev' of https://github.com/androomerrill/swcnts4squints into dev