Dead code removal; also fixed Send button (at least a little; not tested yet.)