HEADLINER REMOVAL

I need to remove the headliner of my car to get to repair hail damage. How do the mouldings around the headliner and the console on the roof come off. It also has a moonroof if that makes a difference.