Bike maintenance for a Noob

Thanks - cables seem cheap enough so may be prudent to just replace them!

If I get it right in the end I wont mind how much time it takes! They are Shimano R517 mechanical ones.
I have a good few tools so hopefully Ill have all I need.