Substantial means, of considerable importance, size or value. It also describes something strongly built or made (in the case of my cakes sometimes both meanings apply!) Another meaning is concerning the substantial points of something.
Substantially either means to a great extent, or for the most part.
To say that the substance of my substantial (100,000 words!) novel, Paint Me a Picture, concerns Mavis's relationships with her family and colleagues is substantially correct.