I don't understand the LED thing

Wire the switch between input pin and ground, and the LED (with current limiting resistor) between pin and 5volt.
Then enable internal pull up on the pin with pinMode in setup.

pinMode (switchPin, INPUT_PULLUP);

Now the pin digitalReads LOW and the LED lights up when the switch is closed.
Leo..