Comets are loose collections of ice, dust and frozen gases left over from the solar system's formation 4.6 billion years ago.