Corrected an example in the build_companion() documentation.
Added an attempt at documenting balance_matrix().