Added lots of rdoc documentation