added documentation for methods