Density functional theory of freezing: some applications