Theory of n-lie algebras