added docs
added proper methods to class