Started a New Class Mode

Some functions were moved from the Beam class to the Mode class upon
creation.  Specifically BeamHGNum and BeamHGNumInv are now ModeHGNum and
ModeHGNumInv respectively.