Theory of Reconstruction in clean and covered metallic surfaces