added some docs
added test