Added documentation to Reference class (to be renamed?)

Migrate locks to codyco-commons LockGuards.
Added some logic into TorqueBalancingModule