Add ScalaDoc and do some minor cleanup