added documentation to class header and methods