adding firebase script
removing sensitive data
adding timestamp check
adding readme
removing type value check and replacing with .has_key('type') instead