added firebaseToHeader + tests. started firebaseToC