Writing some scaladoc for the Scala API.