added documentation and created method