documentation

added documentation to the existing methods