the light coming on after refueling was probably just a coincidence, take it to your local garage and have the code read as some fault codes can be cleared and then dont come back on for a while so the fault might have been there before you brought the car, if the pipe that came of was cold feed to the air box it wont make a difference being off really, i wouldnt worry too much its probably just a lambda sensor or something