documented some code

created .Rd files for the code that wasn't documented yet.
probably needs some small changes later on, but the basics are there.