(1) Hajimemashite is used only when you meet someone for the first
time.
(2) Oyasuminasai is used when going to bed but not when leaving a friend's
house at night.
(3) Just as in English, there are different ways of saying "thank you":
arigato (thanks), arigatogozaimasu (thank you), and domo arigatogozaimasu
(thank you very much).
(4) Ittekimasu is what you say when you leave the house for school.
It literally means "I'm going out but will be back." When you get home,
you say tadaima, which means "I've returned."