Derivations and central extensions of finitely generated graded Lie algebras