I can offer perspectives on both, but will start with the Clutch Slave Cylinder. A hydraulic clutch is almost exactly like a brake system, with the slave cylinder being analagous to the brake caliper. To change this out, you’ll roughly follow these steps:
1. Remove the front sprocket cover so you can fully access the slave cylinder
2. Remove the cap to the clutch fluid reservoir on the handlebar
3. Using a vacuum pump or some other similar method, hook up a tube to the bleed valve on the slave cylinder and drain as much fluid as possible.
4. Loosen the banjo bolt on the fluid line at the slave cylinder. Remove the line completely.
5. Unbolt and remove the current slave cylinder.
6. Bolt on the new slave cylinder. Reconnect the line using the original banjo bolt.
7. Refill the system with fluid and bleed the system.
8. Make sure everything functions and shifts properly. Reinstall the front sprocket cover.
Be sure to keep rags handy when you’re draining and refilling fluid. Clutch/Brake fluid is not friendly to paint and other surfaces.