R medina adding documentation

added documentation to most data types and all the methods. see todos