Dislocation and Impurity Effects in Smectic