You can remember the meaning of 主任 with this easy mnemonic:
The director is the main (主) person who assigns (任) work to everyone.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.