added docs via rdoc