Adding go-doc documentation to spark package

@zankich