Complex sentence: Instead the vanguard would be, by necessity highly secretive and serve the purpose of educating the workers in the theories of Marxism.
Split into simpler sentences: Instead the vanguard would be, by necessity, highly secretive. The vanguard's main purpose would be to educate the workers in the theories of Marxism.