Added scala doc comments