Added scaladocs.