Try pressing down on the carb when its idling, if it idles better then its probably the rubber gasket between the carb and the inlet manifold thats split letting in unmetered air. see if it wobbles, its a common failure. When you put your foot down the vacuum sucks the carb down tight and it runs ok. could also be a vac leak into the manifold from one of the many pipes. Pics would be helpful. The loose pipe could be a breather, if so it should be connected somewhere.