updated Scala doc