udpated rdoc and variable names