I need help writing cover letters. Honestly we go through so many years of school and nothing of this sort is actually taught to us so I am lost lol.

I will be applying to career positions involving research laboratories at the University here. The problem I have in the cover letter is the small things, the format. I know you must start a cover letter with the date, then below that their contact information in order to make it a formal format. Now this prof in the job I am applying for has his PhD of course so in the initial contact information do I write Mr? Dr? just his name and no Mr. or Dr? Such as:

Mr or Dr. ______
Professor & Canadian Research Chair
University Name
University Address
professor's email

Should I include their department (aka field of study) or just leave it as the University address? If I include the department he is in do I then write below that his room in that specific building then the University information of address? such as this:

Mr or Dr. ________
Professor & Canadian Research Chair
Department at university
Building room in the department
University name
University Address
professor's email

Then when I go to write the actual letter do I start with an opening of Dear Dr. _______ or Dear Mr. ______ or Dear _(insert his name)?

I am really at a loss here and I need some help.