logging
rnadeg function
fixed errors in rnadeg