Qhat is the ruling of jamat namaz; when we should recite loudly? When we should not? What zikr we should recite during jamat? By mistake if we start reciting Sur e hamd than what’s the ruling?

We have to read everything quietly other than 2 surahs in first 2 rakats. If anything read mistakenly no problem