I think Biodroid was talking about the Terry Goodkind books, SS, but what you say is true.
The Mission Earth books started of (I don't believe I'm going to say this) quite well, but they degenerated very quickly into sleazy sex tales, and from plumbing the fathoms only got worse after Hubbard died and his wife finished the series. I could not say whether they were the foundation of Scientology - they were written years after Hubbard had founded the uhhh movement. But if they were then I could see no logical basis for any... ah, I see your point.