Variables initialized and few corrections.