added some scaladoc