added rdoc documentation