Algebraic Structure of String Field Theory