added scaladocs