added Scala doc