What do all the ropes do?

In this RYA Onboard video Hannah explains about ropes - the ones called mainsheet and jib sheets (basic controls stage 1), the three common mainsail controls (stage 2) and the halyards (rigging - stage 1 & stage 2).