luke and leia unknowingly being brother and sister is an old archetype concept and I think lucas took it from greek and roman mythology, notwithstanding that he kept going back and forth over whether or not she should be his sister, or vader his father that is what he finally decided upon.
Luke's story originally was supposed to be 6 films, and was compressed to three. , in the original plan that also left the prequels and the sequels, that is why there were twelve episodes planned. the story that could've taken another 4 films to tell after empire strikes back was compressed to fit one movie.