Added scaladoc comments to source files.