A written legal code would be am improvement over an oral set of laws because citizens may forget laws, depending on how much there are. Having them written, where everyone can read it, may help them better understand and remember the acts/laws.
He believed in it. That is why after the overthrow of the Russian tsar. He implemented marxist ideology into Russian politics and government.