added some ScalaDoc