Update docs for format.js
FactorVar#which is now Variable#groupIndices
Elaborate docs for variable constructors
Pull FactorVar methods and their docs to top-level