added scaladoc