The code establishes the law of this state respecting the subjects to which it relates, and its provisions and all proceedings under it are to be liberally construed, with a view to effect its objects and to promote justice.