Added some Scaladoc. May as well do it as I go.