Density functional study of pure and doped metal cluster evolution of structure and properties with size